package com.tanhua.dubbo.api.db;

import com.tanhua.model.db.*;
import com.tanhua.model.db.TestCharacter;

import java.util.List;

public interface TestSoulApi {
    List<TestSoul> getTestSoul();

    List<Questions> getQuestions(Integer id);

    List<Options> getOptions(Integer id);


    TestCharacter getCharacter(int id);

    List<Questions> getQuestionByIds(List<Integer> questionId);


    Integer addResult(TestResult result,Long testId,Long userId);

    TestResult getTestResult(Integer id,Long userId);

    List<QuestionAndoptionsScore> sumByUserScore(List<Integer> questionId,List<Integer> optionId);

    List<Integer> getUserIdByScore(Integer userScore,Long userId);
}
